package com.bxy.dzsc.service.impl;

import com.bxy.dzsc.dao.AdminDao;
import com.bxy.dzsc.domain.Admin;
import com.bxy.dzsc.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {
    @Autowired
    private AdminDao adminDao;
    @Override
    public Admin findbynameandpwd(String uname, String password) {
        return adminDao.findbynameandpwd(uname, password);
    }

    @Override
    public void updateadmin(Admin admin) {
        adminDao.updateadmin(admin);
    }
}
